package com.ejyi.demo.activiti01.config;


/**
 * @author tree.yu
 * @version 1.0
 * @description 描述
 * @create 2018-11-04 22:12
 */
//@Configuration
public class ActivitiConfig  {//extends AbstractProcessEngineAutoConfiguration

//    @Bean
//    public ProcessEngine processEngine(DataSourceTransactionManager transactionManager, DataSource dataSource) throws IOException {
//        SpringProcessEngineConfiguration configuration = new SpringProcessEngineConfiguration();
//        //自动部署已有的流程文件
//        Resource[] resources = new PathMatchingResourcePatternResolver().getResources(ResourceLoader.CLASSPATH_URL_PREFIX + "processes/*.bpmn");
//        configuration.setTransactionManager(transactionManager);
//        configuration.setDataSource(dataSource);
//        configuration.setDatabaseSchemaUpdate("true");
//        configuration.setDeploymentResources(resources);
//        configuration.setDbIdentityUsed(false);
//        return configuration.buildProcessEngine();
//    }
//
//    @Bean
//    public RepositoryService repositoryService(ProcessEngine processEngine) {
//        return processEngine.getRepositoryService();
//    }
//
//    @Bean
//    public RuntimeService runtimeService(ProcessEngine processEngine) {
//        return processEngine.getRuntimeService();
//    }
//
//    @Bean
//    public TaskService taskService(ProcessEngine processEngine) {
//        return processEngine.getTaskService();
//    }
//
//    @Bean
//    public HistoryService historyService(ProcessEngine processEngine) {
//        return processEngine.getHistoryService();
//    }
//
//    @Bean
//    public ManagementService managementService(ProcessEngine processEngine) {
//        return processEngine.getManagementService();
//    }
//
//    @Bean
//    public IdentityService identityService(ProcessEngine processEngine) {
//        return processEngine.getIdentityService();
//    }
    //八大接口 end
}
